package com.coolingme.auth.v3builder;

import com.coolingme.auth.Member;

/**
 * 责任链模式+建造者模式测试
 *
 * @author wangyue
 * @date 2020-09-23 21:36
 */
public class Test {

    public static void main(String[] args) {
        Member member = new Member("lisi", null);
        MemberService memberService = new MemberService();
        memberService.auth(member);

        System.out.println("--------------------");

        member = new Member("lisi", "123456");
        memberService.auth(member);

        System.out.println("--------------------");

        member = new Member("admin", "123456");
        memberService.auth(member);

    }

}
